package com.softtown.modules.sys.dto;

import com.softtown.modules.sys.entity.CompSysUserEmplEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.io.Serializable;
import java.util.List;

/**
 * 角色添加用户
 *
 * @author Dingyayong
 * @version v1.0
 * @create 2019-06-23 23:51
 **/
@Data
public class CompRoleUserAddDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户-员工集合")
    List<CompSysUserEmplEntity> users;

    @ApiModelProperty(value = "角色id")
    @Null(message = "{roleId.null}")
    @NotNull
    private Long roleId;

    @ApiModelProperty(value = "公司id")
    @NotNull(message = "{compId.require}")
    private Long compId;

    @ApiModelProperty(value = "用户id")
    @Null(message = "{userId.null}")
    @NotNull
    private Long userId;
}

